import type { RouteLocationNormalized } from "vue-router"

export default defineNuxtRouteMiddleware((to: RouteLocationNormalized, from: RouteLocationNormalized) => {
  console.log('router change', to.fullPath, from.fullPath)
  // isAuthenticated()是一个验证用户是否已经认证的示例方法
  // if (isAuthenticated() === false) {
  //   return navigateTo('/login')
  // }
})